package cc.eddic.practice.spring.dto;

import cc.eddic.practice.spring.domain.Category;
import cc.eddic.practice.spring.domain.SubCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CategoryAddRequest {
    private String name;
    private List<SubCategory> subCatogorires;

    public Category as(){return new Category(this.name,this.subCatogorires);}
}
